import json
from django.http import HttpResponse
from Feedback.models import Feedback
def add(request):
    if request.method == "POST":
        body = json.loads(request.body)
        Feedback.objects.create(
            email=body["email"],
            content=body["content"]
        ).save()
        return HttpResponse("反馈成功")